package main

import (
	"context"
	"fmt"
	"github.com/zeromicro/go-zero/zrpc"
	"gozero-demo/organization/organizationclient"
)

func main() {

	client, err := zrpc.NewClient(zrpc.NewDirectClientConf([]string{"127.0.0.1:8080"}, "organization.Organization", ""))
	if err != nil {
		return
	}
	organization := organizationclient.NewOrganization(client)
	resp, err1 := organization.Ping(context.Background(), &organizationclient.Request{Ping: "lxr"})
	if err1 != nil {
		return
	}
	fmt.Println("resp.pong=", resp.GetPong())
}
